import { _decorator, AudioClip, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
export enum GameStatus {
  GameMenu, GamePlay, GamePause, GameEnd
}
export enum ColliderType {
  Land, Pipe, Score, Bird
}
@ccclass('GameManager')
export class GameManager extends Component {
  static MoveSpeed: number = 300
  static Score: number = 0
  static status: GameStatus = GameStatus.GameMenu
  onLoad() {
    GameManager.Score = 0
    GameManager.status = GameStatus.GameMenu
  }
  start() {
  }

  update(deltaTime: number) {
    
  }
  static updateToGameMenu() {
    GameManager.status = GameStatus.GameMenu
  }
  static updateToGamePlay() {
    GameManager.status = GameStatus.GamePlay
  }
  static updateToGamePause() {
    GameManager.status = GameStatus.GamePause
  }
  static updateToGameEnd() {
    GameManager.status = GameStatus.GameEnd
  }
  static addScore() {
    GameManager.Score++
  }
}


